package com.yoake.campus.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yoake.common.annotation.Excel;
import com.yoake.common.core.domain.BaseEntity;

/**
 * 文件管理对象 campus_file
 * 
 * @author yoake
 * @date 2024-12-13
 */
public class CampusFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件主键 */
    private Long fileId;

    /** 文章id */
    @Excel(name = "文章id")
    private Long contentId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 存储url */
    @Excel(name = "存储url")
    private String url;

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("contentId", getContentId())
            .append("userId", getUserId())
            .append("url", getUrl())
            .append("createTime", getCreateTime())
            .toString();
    }
}
